package com.bdqn.service.Impl;

import com.bdqn.entity.Goods;
import com.bdqn.entity.Parameters;
import com.bdqn.mapper.GoodsManageMapper;
import com.bdqn.service.GoodsManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class GoodsManageServiceImpl implements GoodsManageService {
    public GoodsManageServiceImpl(){
        System.out.println("GoodsManageServiceImpl");
    }

    @Autowired
    GoodsManageMapper mapper;
    @Override
    public List<Goods> getGoodsInfo(Parameters parameters) {
        return mapper.getGoodsInfo(parameters);
    }

    @Override
    public int getCount(Parameters parameters) {
        return mapper.getCount(parameters);
    }

    @Override
    public int addGoodsInfo(Goods goods) {
        return mapper.addGoodsInfo(goods);
    }

    @Override
    public int delGoodsInfo(int[] ids) {
        return mapper.delGoodsInfo(ids);
    }

    @Override
    public int updateGoodsInfo(Goods goods) {
        return mapper.updateGoodsInfo(goods);
    }
}
